/** @Date 上午10:47:38
  * @version 1.0.0
  * @author shangyd
  * Copyright (c) 2015
  */
package com.sdw.soft.test.multithread;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MultiThreadDemo {


	public static void main(String[] args) throws InterruptedException, ExecutionException {
		ExecutorService executorService = Executors.newFixedThreadPool(10);
		String result = executorService.submit(new Callable<String>(){
			@Override
			public String call() throws Exception {
				return "I am a test program...";
			}
		}).get();
		
		System.out.println(result);
	}
	
	public class DemoCase{
		
	}
}
